package com.fzk.blog.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fzk
 * @date 2021-08-15 19:55
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo {
    private Integer id;

    private String phone;
    private String username;
    private String password;

    private String roleName;// 角色名
    private String headPortraitUrl;
    private String address;
    private String sex;
    private String email;
    private Boolean emailFlag;

    /*这两个要单独查询：外连接查询的话，两个都外连接，将会造成 博客数量*评论数量
    * 这样也好，避免了多表联查  */
    private Integer blogNumber;//发布的博客数量
    private Integer commentNumber;//发表的评论数量
}
